<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<html>
<head>
    <title>全部文章</title>
    <%@ include file="static_res.jsp"%>
</head>
<body>
<%@ include file="header.jsp"%>

<div class="container">
    <div class="row"></div>
    <div class="col s6 offset-s3">
    <ul class="collection">
        <c:forEach items="${PagerMain.list}" var="art">
            <li class="collection-item avatar">
                <img src="<%=ipath%>${art.avatar}" alt="" class="circle">
                <a href="<%=path%>/article/getArticle?uid=${art.id}" class="title">${art.title}</a>
                <p>
                    <a href="<%=path%>/user/visitUser?uid=${art.uid}">${art.name}</a> <br>
                        ${art.abst}
                </p>
                <a href="#!" class="secondary-content"><i class="material-icons">grade</i></a>
            </li>
        </c:forEach>
    </ul>
        <div class = "row">
            <ul class="pagination center ">
                <li class="waves-effect "><a id="home" href="<%=path%>/article/mainData?pageNo=${1}" >首页</a></li>
                <li class="waves-effect "><a id="pre" href="<%=path%>/article/mainData?pageNo=${Pager.pageNo-1}">上一页</a></li>
                <li class="waves-effect "><a href="#!">第${PagerMain.pageNo}/${PagerMain.pageTotal}页</a></li>
                <li class="waves-effect "><a id="next" href="<%=path%>/article/mainData?pageNo=${Pager.pageNo+1}" >下一页</a></li>
                <li class="waves-effect "><a id="end" href="<%=path%>/article/mainData?pageNo=${Pager.pageTotal}" >尾页</a></li>
            </ul>
        </div>
    </div>
</div>
</body>
</html>
